package Book;

public class Booklist {
    Book []books=new Book[10];
    private int sizeBook;
    public Booklist(){
        this.books[0]= new Book("东鹏特饮","小白",5,"饮料",false);
        this.books[1]= new Book("冰红茶","小红",3,"饮料",false);
        this.books[2]=new Book("椰汁","小明",6,"饮料",false);
        sizeBook=3;
    }
    public int getSizeBook() {
        return sizeBook;
    }
    public void setSizeBook(int sizeBook) {
        this.sizeBook = sizeBook;
    }
    public Book getBook(int indexBook){
        return books[indexBook];
    }
    public void setBook(int indexBook,Book book){
        books[indexBook]=book;

    }

}
